/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tan_subsectorDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression sub_id;
	public final StringExpression sub_nombre;
	
	public Tan_subsectorDetachedCriteria() {
		super(orm.Tan_subsector.class, orm.Tan_subsectorCriteria.class);
		sub_id = new IntegerExpression("sub_id", this.getDetachedCriteria());
		sub_nombre = new StringExpression("sub_nombre", this.getDetachedCriteria());
	}
	
	public Tan_subsectorDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tan_subsectorCriteria.class);
		sub_id = new IntegerExpression("sub_id", this.getDetachedCriteria());
		sub_nombre = new StringExpression("sub_nombre", this.getDetachedCriteria());
	}
	
	public Tan_cursoDetachedCriteria createTan_cursocurCriteria() {
		return new Tan_cursoDetachedCriteria(createCriteria("tan_cursocur"));
	}
	
	public orm.Tan_anotacionDetachedCriteria createTan_anotacionCriteria() {
		return new orm.Tan_anotacionDetachedCriteria(createCriteria("ORM_Tan_anotacion"));
	}
	
	public Tan_subsector uniqueTan_subsector(PersistentSession session) {
		return (Tan_subsector) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tan_subsector[] listTan_subsector(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tan_subsector[]) list.toArray(new Tan_subsector[list.size()]);
	}
}

